package com.artgogo.artgogoerp.model;

import java.io.Serializable;
import java.util.ArrayList;

public class MoveOperation implements Serializable {

    /**
     * 移库操作的数据模型 moveType 移库类型 goods_ids 所以货品ID 以,分隔 destination 新位置 sender 发送人
     * receiver 接收人(暂定)
     * userid cms用户id,用于识别操作用户
     */
    private static final long serialVersionUID = 2835029372976297282L;

    // 字段的关键字
    public static final String KEY_MOVETYPE = "moveType";
    public static final String KEY_GOODSIDS = "goods_ids";
    public static final String KEY_DESTINATION = "destination";
    public static final String KEY_SENDER = "sender";
    public static final String KEY_USERID = "userid";
    public static final String KEY_IDLIST = "idlist";
    public static final String KEY_ISCHECKEDLIST = "isCheckedList";

    private String moveType;
    private String goods_ids;
    private String destination;
    private String sender;
    private int userid;
    private ArrayList<Integer> idlist;
    private ArrayList<Boolean> isCheckedList;

    public void parseId() {
        String[] idTemp = goods_ids.split(",");
        for (int i = 0; i < idTemp.length; i++) {
            idlist.add(Integer.valueOf(idTemp[i]));
        }
    }

    public String getMoveType() {
        return moveType;
    }

    public void setMoveType(String moveType) {
        this.moveType = moveType;
    }

    public String getGoods_ids() {
        return goods_ids;
    }

    public void setGoods_ids(String goods_ids) {
        this.goods_ids = goods_ids;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public ArrayList<Integer> getIdlist() {
        return idlist;
    }

    public void setIdlist(ArrayList<Integer> idlist) {
        this.idlist = idlist;
    }

    public ArrayList<Boolean> getIsCheckedList() {
        return isCheckedList;
    }

    public void setIsCheckedList(ArrayList<Boolean> isCheckedList) {
        this.isCheckedList = isCheckedList;
    }
}
